<?php
/**
 * @package		Joomla.Site
 * @subpackage	com_content
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');

// Create shortcuts to some parameters.
$params		= $this->item->params;
$images = json_decode($this->item->images);
$urls = json_decode($this->item->urls);

?>

<div class='video'>
	
	<div class='video-r'>
	<?php if ( !empty( $this->item->trailer ) ) {?>
	<embed
		width="370" height="250"
		src="<?php echo $this->item->trailer?>"
		type="application/x-shockwave-flash">
	</embed>
	<?php } // end of if trailer?>
	<h3><span>Synopsis</span></h3>
	<p><?php echo $this->item->text?></p>
	</div>
	<div class='video-l'>
		<?php if ( !empty( $this->item->poster ) ) {?>
		<img align="middle" src="<?php echo JURI::base() . $this->item->poster?>" alt="film poster">
		<?php } // end of film poster?>
		<h3><?php echo $this->item->cat_title?></h3>
		<h4><?php echo $this->item->title?></h4>
		<p>Length: <?php echo $this->item->length?> </p>
		<p><?php echo $this->item->production?></p>		
		<p><?php if ( strpos ( $this->item->film_version, 'Internation' ) !== false ) { ?>Version: <?php } else {?>Versions: <?php }// end else?><?php echo $this->item->film_version?>  </p>
		<p>Co-production: <?php echo $this->item->coproduction?>  </p>
		<p>Directed by: <?php echo $this->item->directed_by?>  </p>
		</p>
	</div>
</div>